package com.bwie.auth.feign;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("bwie-user")
public interface AuthFegin {
    /**
     * 远程调用
     * @param userName
     * @return
     */
    @GetMapping("/user/login/{userName}")
    public Result<User> login(@PathVariable String userName);
}
